import  request  from "../utils/request";

export const login = (account: ILoginAcount) => request<any, ILoginSuccess>({
    url: '/user/login',
    method: 'post',
    data: account
  })

export const getUserInfo = () => request<any, IUserInfoSuccess>({
  url: '//userinfo',
  method: 'GET',
})